package com.result.demo.scheduled;


import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * @author chao.z
 */
@Configuration
//@EnableScheduling
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ScheduledMachine {




    /**
     * 定时任务 同步设备
     */
    @Scheduled(cron = "0/5 * * * * ?")
    private void saveMachineTask(){
    }
}
